/* -*- Mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/*
  RefObject (http://code.google.com/p/refobject/)
  Copyright (C) 2010-2011 MIURA Shirow (sharow)
*/

#include <stdio.h>
#include <stdlib.h>

#include <RefObject/RefObject.h>

int test_RefAllocator(void);
int test_RefList(void);
int test_RefDict(void);
int test_RefBuildValue(void);

int
main(int argc, char *argv[])
{
    int total_failed;
    total_failed = 0;
    total_failed += test_RefAllocator();
    total_failed += test_RefList();
    total_failed += test_RefDict();
    total_failed += test_RefBuildValue();
    printf("------------------------\n");
    printf("Total failed: %d", total_failed);
    if (total_failed == 0) {
        printf("    OK\n");
        return EXIT_SUCCESS;
    } else {
        printf("    FAILED!\n");
        return EXIT_FAILURE;
    }
}
